import request from '@/utils/request'

const BASE_URI = "http://localhost:8001"
// const BASE_URI = "http://mengxuegu.com:7300/mock/5dbd84932aa750460d4fd1ef/"
// request.get('/db.json').then(response => {
//     console.log(response.data)
// })

// 测试2, 以对象配置的方式进行制定的请求方式
request({
    method: 'get',
    url: '/user/login',
}).then(response => {
    console.log('get2', response.data)
})


export default {
    getList() {
        const req = request({
            method: 'get',
            url: '/user/login'
        })
        return req
    }
}